package com.qyt.hotel.dao;

import com.qyt.hotel.entity.Room;
import com.qyt.hotel.entity.RoomState;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoomMapper {
    List<Room> getRoomList(@Param("roomTypeId") Integer roomTypeId, @Param("roomStateId") Integer roomStateId);

    String getRoomId(@Param("roomId") String roomId);

    Integer addRoom(Room room);

    Room getOne(String roomId);

    Integer updateRoom(@Param("id") String id, @Param("roomId") String roomId, @Param("roomStateId") Integer roomStateId, @Param("roomTypeId") Integer roomTypeId, @Param("roomDescription") String roomDescription);

    Integer deleteRoom(@Param("roomId") String roomId);
}
